<?php

use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;

class Noticia extends Eloquent {

	public static $rules=array(
        'titulo' => 'required',
        'descripcion' => 'required',
    );
	
	protected $fillable = array('titulo', 'descripcion');
	
	public function user()
	{
		return $this->belongsTo('User');
	}
	public function comentarios()
	{
		return $this->belongsToMany('Comentario', 'noticias_comentarios');
	}
}